package com.klikmee.sms.chat.web.service;

import java.util.Observable;

/**
 * This class represents event dispatcher for chat service.
 * Listeners can subscribe to listen for events. Usually used to
 * notify listener of a new request message or response message sent
 * events.
 * 
 * @author makcro
 *
 */
public class SmsChatEventDispatcher extends Observable {
	/**
	 * Notifies listeners of a new event.
	 * 
	 * @param eventArgument custom event data for the event.
	 */
	public void notifyListeners(Object eventArgument){
		setChanged();
		notifyObservers(eventArgument);
	}
}
